import post from './base.js'

export const goodsCateListReq = formData => post('goods-cate/list', formData)

export const goodsCateListWithGoodsReq = formData => post('goods-cate/list-with-goods', formData)

export const goodsCateActionReq = formData => post('goods-cate/action', formData)

export const goodsCateDelReq = formData => post('goods-cate/del', formData)

export const goodsCateChangeOrderReq = formData => post(`goods-cate/change-order`, formData)

export const goodsCateChangeShowReq = formData => post(`goods-cate/change-show`, formData)

export const goodsCateAttrKeyListReq = formData => post(`goods-cate-spec-key/list`, formData)

export const goodsCateAttrKeyChangeNameReq = formData => post(`goods-cate-spec-key/change-name`, formData)

export const goodsCateAttrValueActionReq = formData => post(`goods-cate-spec-value/action`, formData)

export const goodsCateAttrKeyDelReq = formData => post(`goods-cate-spec-key/del`, formData)

export const goodsCateAttrValueDelReq = formData => post(`goods-cate-spec-value/del`, formData)

export const goodsCateAttrKeyActionReq = formData => post(`goods-cate-spec-key/action`, formData)

export const goodsCateAttrValueChangeValueReq = formData => post(`goods-cate-spec-value/change-value`, formData)

export const GOODS_CATE_TYPE_LIST = ['普通商品', "批发产品", '试喝产品']